def main(cont):
	ob = cont.owner
	
	logic_cube = ob.parent
	if "actionOb" not in logic_cube:
		logic_cube["actionOb"] = ob.name
		
	# Sensor
	sensor = cont.sensors["Message"]
	
	# We'll just grab the first subject
	if sensor.subjects:
			cont.activate(sensor.subjects[0])